cmake_minimum_required(VERSION 2.8)
project(smtp)
set(CMAKE_INSTALL_PREFIX /usr/local)
set(CMAKE_MACOSX_RPATH 0)

if (CMAKE_BUILD_TYPE STREQUAL Debug)
message(STATUS "***********************************")
message(STATUS "We are going to build debug version!")
message(STATUS "***********************************")
endif()

set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -rdynamic -ggdb -Wno-sign-compare")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -rdynamic -Wno-sign-compare")

add_subdirectory(smtp_src smtp)
